import request from '@/utils/request'

// 查询库存策略列表
export function listStockStrategy(query) {
  return request({
    url: '/basic/stockStrategy/list',
    method: 'get',
    params: query
  })
}

// 查询库存策略详细
export function getStockStrategy(id) {
  return request({
    url: '/basic/stockStrategy/' + id,
    method: 'get'
  })
}

// 新增库存策略
export function addStockStrategy(data) {
  return request({
    url: '/basic/stockStrategy',
    method: 'post',
    data: data
  })
}

// 修改库存策略
export function updateStockStrategy(data) {
  return request({
    url: '/basic/stockStrategy',
    method: 'put',
    data: data
  })
}

// 删除库存策略
export function delStockStrategy(id) {
  return request({
    url: '/basic/stockStrategy/' + id,
    method: 'delete'
  })
}
